/** @file         lzm_main.c
 *  @brief        简要说明
 *  @details      详细说明
 *  @author       lzm
 *  @date         2024-07-11 17:32:33
 *  @version      v1.0
 *  @copyright    Copyright By lizhuming, All Rights Reserved
 *
 **********************************************************
 *  @LOG 修改日志:
 **********************************************************
*/

#include "lzm_logal_api.h"
#include "lwip/sockets.h"
#include "lwip/tcpip.h"
#include "netif/etharp.h"
#include "lwip/ethip6.h"
#include "netif/tapif.h"

#include "apps_init.h"


#define lzm_main_log(...)  LZM_LOG(LZM_LOG_LVL_DEBUG, ##__VA_ARGS__)


static void tcpip_init_cb(void *arg)
{
	lzm_main_log("lwip init ok\r\n");
}

extern void lzm_demo_lwip_netif_linux_init(void);

void main(void)
{
    lzm_main_log("main start\n");
    tcpip_init(tcpip_init_cb, NULL);
    lzm_demo_lwip_netif_linux_init();
    apps_init();
}
